package edu.sctu.alex.May.day20150515.test2;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by user03 on 2015/5/15.
 */
public class MapTest {
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("1001","alex");
        map.put("1002","alice");
        map.put("1003","jack");
        map.put("1004","tom");
        map.put("1005","mike");
        map.put("1006","lucy");
        map.put("1007","bob");
        Map m= new HashMap();
        for(Object obj : map.values()){

            System.out.print(""+obj+" ");

        }
        System.out.print("\n");
//        for (int i = 0; i <map.size() ; i++) {
//
//
//          StringOne str = map.get("1001").toString();
//            System.out.println(str);
//        }
        for(Object obj2 : map.keySet() ){
            System.out.print(""+obj2+"");

        }

    }
}

